package com.example.cdpbookstore.tool;

import com.mchange.v2.c3p0.ComboPooledDataSource;
import org.apache.commons.dbutils.QueryRunner;

public class C3P0Tool {
    public static QueryRunner queryRunner;
    static {
        try {
            queryRunner = new QueryRunner(new ComboPooledDataSource());
        } catch (Exception e) {
            System.err.println("C3P0Tool: 数据库连接池失败");
        }
    }
}
